// 在 `global object` 上定义的属性(部分)

console.log( '值属性' );

console.log( global.Infinity ); // 无穷大
console.log( global.NaN ); // not a number
console.log( global.undefined ); // undefined
// globalThis 表示 `global object` 本尊
console.log( global.globalThis === global ); // true

console.log( '函数属性' );
console.log( global.eval );
console.log( global.isFinite );
console.log( global.isNaN );
console.log( global.parseFloat );
console.log( global.parseInt );
console.log( global.decodeURI );
console.log( global.decodeURIComponent );
console.log( global.encodeURI );
console.log( global.encodeURIComponent );

console.log( '-'.repeat(20) );

console.log( global.setInterval );
console.log( global.clearInterval );
console.log( global.setTimeout );
console.log( global.clearTimeout );
console.log( global.queueMicrotask );
console.log( global.setImmediate );
console.log( global.clearImmediate );

// 参考文档:
// https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects